log = {
    'LEVEL': 'DEBUG',
    'DIR': 'logs',
    'SIZE_LIMIT': 1024 * 1024 * 5,
    'REQUEST_LOG': True,
    'FILE': True
}



''':cvar

[loggers]
keys=root

[handlers]
keys=rotatingFileHandler,streamHandler,errorHandler


[formatters]
keys=simpleFmt

[logger_root]
level=DEBUG
handlers=rotatingFileHandler,streamHandler,errorHandler

[handler_rotatingFileHandler]
class=handlers.TimedRotatingFileHandler
level=INFO
formatter=simpleFmt
args=(os.path.abspath("log/default.log"),"midnight", 1, 10,'utf-8')


[handler_errorHandler]
class=handlers.TimedRotatingFileHandler
level=ERROR
formatter=simpleFmt
args=(os.path.abspath("log/error.log"), "midnight", 1,30,'utf-8')

[handler_streamHandler]
level=INFO
class=StreamHandler
formatter=simpleFmt
args=(sys.stdout,)

[formatter_simpleFmt]
format=%(asctime)s %(pathname)s(%(lineno)d): [%(levelname)s]%(message)s


'''